#############################################
# Dars-20

t1 = (1, 2, 3, 4, 5)
t2 = [1, 2, 3, 4, 5]

print(t1, type(t1))
print(t2, type(t2))

t3 = 1, 2, 3, 4, 5
print(t3, type(t3))

t4 = tuple((1, 2, 3, 4, 5))
print(t4, type(t4))

t5 = ()
print(t5, type(t5))

t6 = tuple('hello')
print(t6, type(t6))
print(t6[3])

t7 = (1,)
print(t7, type(t7))

t8 = (1, 2, 3, 4, 5)
t9 = [1, 2, 3, 4, 5]
print(t8.__sizeof__())
print(t9.__sizeof__())

z1 = tuple('hello')
z4 = tuple(' world')
z2 = z1 + z4
print(len(z2))
print(z2.count('l'))
print(z2.index('w'))

if 'w' in z2:
    print(z2.index('w'))
else:
    print('Hechnima yo\'q')

for i in z2:
    if i == ' ':
        continue
    print(f'"{i}"', end = " ")

z5 = (12, 21, 3, ['salom', 'dunyo'], ['qalam', 'Og\'abek', 'va'])
print(z5, id(z5))
z5[4][0] = 'Toshbaqa'
z5[4][2] = 'Qurbaqa'
print(z5, id(z5))

z5[4].append('Xo\'roz')
print(z5, id(z5))

k = (1, 2, 3)
x, y, z = k
print(z, x, y)

# Vazifa
# polindromlarni topish

words = ['madam', 'ikki', 'aya', 'salom', 'Mundir']
words1 = ['Masha', 'Bo\'ri', 'Ayiq qiya', 'Aka ana aka']

for word in til:
    pass

print('madam'[::-1])











